<template>
	<view>
		
		<button @click="onLog()">console.log</button>
		<button @click="onDebug()">console.debug</button>
		<button @click="onwarn()" type=""warn>console.warn</button>
		<button @click="onError()">console.error</button>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				title:'打印日志',
				name:'zhangsan',
				pwd:'zzz'
			}
		},
		methods: {
			onLog(){
				// 
				console.log("onLog()-->"+this.title);
				//clog简写console.log
				console.log();
				// clogv
				console.log('this.title: ',this.title);
				// ,更规整
				console.log(': ',);
			},
			onwarn(){
				if(name==='qkh'){
					console.log("登录成功");
				}else{
					console.warn("this is warn log")
				}
			},
			onError(){
				console.log("onerror--> this is error log");
			}
		}
	}
</script>

<style>

</style>
